package com.team7.happycommunity.businessservice.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration
public class WebMvcConfig implements WebMvcConfigurer {

    @Override
    public void addViewControllers(ViewControllerRegistry registry) {
        registry.addViewController("/").setViewName("/index");
        registry.addViewController("/index").setViewName("/index");
        registry.addViewController("/register2").setViewName("/register2");
        registry.addViewController("/bussinessFirstPage").setViewName("/bussinessFirstPage");
        registry.addViewController("/serviceDetails").setViewName("/serviceDetails");
        registry.addViewController("/add_service").setViewName("/add_service");
        registry.addViewController("/myCenter").setViewName("/myCenter");
        registry.addViewController("/my_sz").setViewName("/my_sz");
        registry.addViewController("/bussinessImage").setViewName("/bussinessImage");
        registry.addViewController("/index2").setViewName("/index2");
        registry.addViewController("/total_order").setViewName("/total_order");
        registry.addViewController("/my-indent-dfh").setViewName("/my-indent-dfh");
        registry.addViewController("/OrderDetails").setViewName("/OrderDetails");
        registry.addViewController("/book_order").setViewName("/book_order");
        registry.addViewController("/accounts_order").setViewName("/accounts_order");
        registry.addViewController("/handled_in_order").setViewName("/handled_in_order");
        registry.addViewController("/finish_order").setViewName("/finish_order");
        registry.addViewController("/await_evaluate_order").setViewName("/await_evaluate_order");
    }

//    //配置静态资源映射
//    @Override
//    public void addResourceHandlers(ResourceHandlerRegistry registry) {
//        registry.addResourceHandler("/carousel/img/**")
//                .addResourceLocations("file:e:/upload/carousel/img/");
//    }
}
